











<div class="x-body">
    <form class="layui-form form_single" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label  class="layui-form-label">
                模板选择
            </label>
            <div class="layui-input-block">
                <select name="template" id="template">
                    {volist name='templates' id='vo'}
                    <option value="{$vo['id']}">{$vo['name']}</option>
                    {/volist}
                </select>
            </div>


        </div>



        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
            
            <a class="layui-btn ladda-button" href="javascript:fakedata_add2();" ><i class="fa fa-history"></i> 确 定</a>
<a class="layui-btn ladda-button" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>


        </div>

    </form>
</div>



<script type="text/javascript">

    ob.setValue("is_hide", {$info.is_hide|default=0});
    ob.setValue("is_shortcut", {$info.is_shortcut|default=0});
    ob.setValue("pid", {$info.pid|default=0});

    function fakedata_add2(){
        template_id = $("#template").val()
        
            layer.open({
                type: 2 //此处以iframe举例
                ,title: "添加模板数据"
                ,area: ['90%', '90%']
                ,shade: 0
                ,maxmin: true
                ,content: "fakeDataAddTemplate?template_id="+template_id
                ,btn: [] //只是为了演示
            });
      
    }

</script>

